package com.example.demo.model.form;

import com.example.demo.model.core.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

@Setter
@Getter
@NoArgsConstructor
@Schema(description = "用户表单对象")
public class UserForm implements Serializable {

    @NotEmpty(message = "id不能为空", groups = {Update.class})
    @Schema(description = "用户Id")
    private String id;
    @NotEmpty(message = "登录名不能为空")
    @Schema(description = "登录名")
    private String username;
    @NotEmpty(message = "昵称不能为空")
    @Schema(description = "昵称")
    private String nickName;
    @Schema(description = "部门Id")
    private String deptId;
    //@NotEmpty(message = "真实姓名不能为空")
    @Schema(description = "真实姓名")
    private String realName;
    //@NotEmpty(message = "手机号不能为空")
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "性别")
    private String gender;
    @Schema(description = "角色Id列表")
    private List<String> roleIds;
}
